package com.stone.framework.basic.config;

import javax.servlet.Filter;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.stone.framework.core.filter.TokenFilter;

@Configuration
public class FilterConfig {

    @Bean
    public FilterRegistrationBean<Filter> tokenFilter() {
        return new FilterRegistrationBean<Filter>(new TokenFilter());
    }

}
